import request from '@/api/request'

function homeIndex(data) {
    return request({
        url: '/bufan/index/index',
        method: 'get',
        data
    })
}

//home页跳转到分类商品导航
function homecategoryNav(data) {
    return request({
        url: '/bufan/category/categoryNav',
        method: 'get',
        data
    })
}

//home页跳转到分类商品列表
function homegoodsList(data) {
    return request({
        url: '/bufan/goods/goodsList',
        method: 'get',
        data
    })
}

//新品首发/人气推荐
function homeRecommendList(data) {
    return request({
        url: '/bufan/goods/goodsList',
        method: 'get',
        data
    })
}

export default ({
    homeIndex,
    homecategoryNav,
    homegoodsList,
    homeRecommendList
})